projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88dc98
)
filechooser: Avoid a critical
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 3 Jul 2021 19:15:06 +0000
(15:15 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 3 Jul 2021 19:15:06 +0000
(15:15 -0400)
This was showing up when calling some filechooser api on
a native filechooser, where we use a filechooser dialog
behind the scenes, but it does not have focus.
Fixes: #4077
gtk/gtkfilechooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechooserwidget.c
b/gtk/gtkfilechooserwidget.c
index 918206ac263debb8b1bffc47333406af267f5215..f2fe1f925704d2e8f845967a299fc277d6138f49 100644
(file)
--- a/
gtk/gtkfilechooserwidget.c
+++ b/
gtk/gtkfilechooserwidget.c
@@
-5444,6
+5444,7
@@
gtk_file_chooser_widget_get_files (GtkFileChooser *chooser)
goto file_entry;
}
else if (impl->location_entry &&
+ current_focus &&
(current_focus == impl->location_entry ||
gtk_widget_is_ancestor (current_focus, impl->location_entry)))
{